Current Location: Home> Function Categories> is_infinite

is_infinite

Determine whether it is infinite
Name:is_infinite
Category:math
Programming Language:php
One-line Description:Determine whether it is an infinite value.

Definition and usage

is_infinite() determines whether it is an infinite value.

Example

 <?php
echo is_infinite ( 2 ) ;
echo is_infinite ( log ( 0 ) ) ;
echo is_infinite ( 2000 ) ;
?>

Try it yourself

grammar

 is_infinite ( x )
parameter describe
x Required. Specify the value to be checked.

illustrate

Return true if x is infinite (positive or negative), such as the result of log(0) or any value that exceeds the range of floating point numbers on this platform.

Similar Functions
Popular Articles